#include <stdio.h>

int main()
{
    FILE *fp=fopen("log.txt","r");
    if(fp==NULL)
    {
        perror("fopen:");
        return 1;
    }
    char line[64];
    while(fgets(line,sizeof(line),fp)!=NULL)
    {
        fprintf(stdout,"%s",line);
    }
    fclose(fp);
}
